﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<EjemploMVC.Models.ConsultaModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   <% using (Html.BeginForm()) { %> 
   <h2><div align="center">Consulta de Cursos</h2> </div>
   <table width="500px" border="1" style="font: Arial 6px" align="center">
   <tr>
        <td><%: Html.DropDownListFor(x => x.idCurso, Model.Cursos, "--- Elegir Cursos ---", new { onchange = "this.form.submit()" })%></td>
   </tr>
   <tr>
        <td><%: Html.TextBox("txtEncargado", Model.encargadoCurso) %></td>
   </tr>
   <tr>
        <td><%: Html.TextArea("txtInformacion", "", 10 , 25,"") %></td>
   </tr>

   <tr>
        <td align="center"><input type="submit" name="OK" value ="Enviar" onClick="alert('Mensaje enviado')"/></td>
        
   </tr>
   </table>


    
<% } %>

</asp:Content>
